package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.NewUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 桑田
 **/
@RestController
@RequestMapping("/newUsers")
public class NewUsersCotroller {
    @Autowired
    NewUsersService newUsersService;
    @GetMapping("/getNewUsers")
    public ResponseResult getNewUsers(){
        return ResponseResult.okResult(newUsersService.list());
    }
}
